package day07;

//重载的演示
public class OverloadDemo {
    public static void main(String[] args) {

        show();
        show(25);
        show('男');
        show("张三");
        show(26, "李四");
        show("王五", 25);
//show(3.14);//发生编译错误,没哟double参的show


    }

    //发生重载
    //方法的签名   方法名+参数类型
    public static void show() {
    }

    public static void show(int age) {
    }

    public static void show(char gender) {
    }

    public static void show(String name) {
    }

    public static void show(String name, int age) {
    }

    public static void show(int age, String name) {
    }


   /* public static int show(int  age){///编译错误,重载与返回值类型无关
        return 1;
    }
    public  static void show(String address){///编译错误,重载与参数名无关

    }*/


}
